<?php
/**
 * @fileoverview    分享页面(仅图片)
 * @author          xinhua
 * @date            Feb  02 11:31:49 CST 2012
 * @copyright       sina meila
 */
include('../../__global.php');
include('./share_public.php');


class share_pic extends share_public{

    public function main(){
        
        $shareModle=new ml_model_dbContent();
        
        $data=$shareModle->get_content_by_uid($this->_uid, $this->_begin,ML_FEED_PAGESIZE);//第一个数据页数，第二个offset，第三个参数数据类型
       
        $this->total=$shareModle->get_count_by_uid($this->_uid);

    
        $pin_biz=new ml_biz_pin_content();
        $data=$pin_biz->output($this->__visitor['uid'], $data, $this->__isself);
        $this->Acontent = ml_tool_pinOutput::groupPinByColumn($data , 4 , array(3=>1));

        ml_tool_actionlog::view_userpic($this->__visitor['uid'] , $this->_uid , ceil($this->_begin/ML_FEED_PAGESIZE));
        $this->init_share();
        $this->finnal['title']=$this->__isself?"我分享的".ML_CNF_PAGETITLE_SUFFIX2:$this->userData['nickname']."分享的".ML_CNF_PAGETITLE_SUFFIX2;
        $this->page_output("user::share_pic", $this->finnal);

    }


}
new share_pic();
?>